<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<!--后台模板在线网址 http://www.sucaihuo.com/modals/5/518/demo/ui_features.html-->
<head>
    <meta charset="utf-8">
    <title>约健体育联盟</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="约健体育联盟">
    
</head>
<body>
<div id="wrap">
    
    <div class="container-fluid">
        

        <!-- Main window -->
        <div class="main_container" id="users_page">

            <div class="row-fluid">

                <h2 class="heading">
                    俱乐部课程列表
                </h2>
            </div> <!-- /row-fluid -->


            <!--此处往下为代码改写部分-->
            <div class="row-fluid">
                <div class="widget widget-padding span12">
                    <div class="widget-header">
                        <i class="icon-group"></i>
                        <h5>俱乐部课程列表</h5>
                        <div class="widget-buttons">
                            <!--<a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>-->
                            <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
                        </div>
                    </div>
                    <div class="widget-body table-responsive ">
                        <table id="users" class="table table-condensed table-striped table-bordered dataTable">
                            <thead>
                            <tr>
                                <th>序号</th>                
                                <th>课程名称</th>
                                
                                <th>图片</th>
                                <th>课程简介</th>
                                
                                <th>价格</th>
                                <th>操作</th>
                                <!-- <th>俱乐部id</th> -->
                                
                            



                            </tr>
                            </thead>
                            <tbody>
                            <?php if(is_array($courselist)): $i = 0; $__LIST__ = $courselist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                                    <td><?php echo ($vo["cid"]); ?></td>
                                    
                                    <td><?php echo ($vo["c_name"]); ?></td>
                                    <td><img src="/yuejian12/Public/Uploads/photo/<?php echo ($vo["c_pic"]); ?>" width="60"></td>
                                    <td><?php echo ($vo["c_intro"]); ?></td>
                                    <td><?php echo ($vo["c_price"]); ?></td>
                                    <!-- <td><?php echo ($vo["clubid"]); ?></td> -->
                            


                                      <td>
                                      <a href="/yuejian12/index.php/Admin/Course/editcourse/id/<?php echo ($vo["cid"]); ?>"> 添加|</a>
                                        <a href="/yuejian12/index.php/Admin/Course/edituser/id/<?php echo ($vo["cid"]); ?>"> 修改|</a>
                                        <a href="/yuejian12/index.php/Admin/Course/deluser/id/<?php echo ($vo["cid"]); ?>" onclick="return confirm('你确定要删除吗？')">删除</a>
                                        
                              
                                    </td>
                                   
                                
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>

                            </tbody>
                        </table>
                    </div> <!-- /widget-body -->
                </div> <!-- /widget -->
            </div> <!-- /row-fluid -->

        </div>
        <!-- /Main window -->

    </div><!--/.fluid-container-->
</div><!-- wrap ends-->
</body>
</html>